open class A(val x: Int) {
    constructor(x: String) : this(x.toInt())
}